package com.hqyj.shop.service.imp;

import com.hqyj.shop.dao.GoodsDaoZhl;
import com.hqyj.shop.pojo.GoodsZhl;
import com.hqyj.shop.service.GoodsServiceZhl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImplZhl implements GoodsServiceZhl {

    @Autowired
    private GoodsDaoZhl goodsDaoZhl;

    @Override
    public List<GoodsZhl> goodsQueryAll() {
        return goodsDaoZhl.goodsQueryAll();
    }

    @Override
    public GoodsZhl goodsQueryById(int goodsId) {
        return goodsDaoZhl.goodsQueryById(goodsId);
    }

    @Override
    public int insertOne(GoodsZhl goodsZhl) {
        return goodsDaoZhl.insertOne(goodsZhl);
    }

    @Override
    public int updateOne(GoodsZhl goodsZhl) {
        return goodsDaoZhl.updateOne(goodsZhl);
    }

    @Override
    public int deleteById(int goodsId) {
        return goodsDaoZhl.deleteById(goodsId);
    }
}
